package com.smartfactory.sail.entity;

    import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* <p>
    * 产品生产流程详情
    * </p>
*
* @author 王巨壁
* @since 2019-08-13
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("item_workingProcedure_info")
    @ApiModel(value="ItemWorkingprocedureInfo对象", description="产品生产流程详情")
    public class ItemWorkingprocedureInfo implements Serializable {

    private static final long serialVersionUID = 1L;

            @TableId(value = "id", type = IdType.AUTO)
    private Long id;

            @ApiModelProperty(value = "产品id")
        @TableField("itemId")
    private Long itemId;

            @ApiModelProperty(value = "订单id")
        @TableField("orderId")
    private Long orderId;

            @ApiModelProperty(value = "工序id")
        @TableField("workingProcedureId")
    private Long workingProcedureId;

            @ApiModelProperty(value = "员工id")
        @TableField("userId")
    private Long userId;

            @ApiModelProperty(value = "生产人员")
        @TableField("userName")
    private String userName;

            @ApiModelProperty(value = "设备id")
        @TableField("deviceId")
    private Long deviceId;

    @ApiModelProperty(value = "设备名称")
    @TableField("deviceName")
    private String deviceName;

            @ApiModelProperty(value = "物料编码")
            @TableField("code")
            private String code;

            @ApiModelProperty(value = "状态0待分配")
    private Integer status;

            @ApiModelProperty(value = "生产开始时间")
        @TableField("startTime")
    private LocalDateTime startTime;

            @ApiModelProperty(value = "生产结束时间")
        @TableField("endTime")
    private LocalDateTime endTime;

            @ApiModelProperty(value = "异常信息")
        @TableField("exceptionInfo")
    private String exceptionInfo;

            @ApiModelProperty(value = "备注")
    private String remark;

            @ApiModelProperty(value = "是否已经领料0否1是")
        @TableField("isPicking")
    private Integer isPicking;

            @ApiModelProperty(value = "领料的数量")
        @TableField("pickingSize")
    private Integer pickingSize;

            @ApiModelProperty(value = "完成数量")
        @TableField("completeNumber")
    private Integer completeNumber;

            @ApiModelProperty(value = "问题数量")
        @TableField("problemNumber")
    private Integer problemNumber;

            @ApiModelProperty(value = "生产顺序")
    private Integer sort;

            @ApiModelProperty(value = "工序对应的原料id集合用|隔开")
        @TableField("materialIds")
    private String materialIds;

            @ApiModelProperty(value = "创建人")
        @TableField("createUser")
    private String createUser;

            @ApiModelProperty(value = "创建时间yyyy-MM-dd HH:mm:ss")
        @TableField("createTime")
    private String createTime;

            @ApiModelProperty(value = "修改人")
        @TableField("updateUser")
    private String updateUser;

            @ApiModelProperty(value = "更新时间yyyy-MM-dd HH:mm:ss")
        @TableField("updateTime")
    private String updateTime;


}
